package com.uzai.console.cashier.dto;

import com.uzai.console.cashier.enums.TradeStatusEnum;
import lombok.Data;
import org.apache.commons.lang3.EnumUtils;

import java.time.LocalDateTime;

/**
 * @author mingyang.chen create in 2023/11/10 11:34
 */
@Data
public class WxOrderQueryDto {

    private String tradeNo;

    private String refundTradeNo;

    private LocalDateTime successTime;

    private Boolean success;

    private TradeStatusEnum status;

    private String statusDesc;

    private String transactionId;

    private String mchId;

    private String refundId;

    public void setStatus(String status) {
        this.status = EnumUtils.getEnum(TradeStatusEnum.class, status);
    }
}
